﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="bindapi.aspx.cs" Inherits="weikeweixin.web.admin.wechat.bindapi" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="Keywords" content="IdeaSoft软件 " />
    <meta name="Description" content="IdeaSoft软件" />
    <link href="../../../css/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
    
    <link href="../../../css/Bootstrap/bootstrap.responsive.min.css"
        rel="stylesheet" type="text/css" />
    <link href="../../../css/Bootstrap/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/Bootstrap/themes.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../css/Bootstrap/todc.bootstrap.button.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../css/Bootstrap/font-awesome.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../css/Bootstrap/todc_bootstrap.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../css/Bootstrap/resource.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../css/Bootstrap/inside.css" rel="stylesheet"
        type="text/css" />
    <script src="../../../Scripts/JQuery.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/JQuery.cookie.js" type="text/javascript"></script>
    <script src="../../../Scripts/JQuery.form.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/JQuery.form.wizard.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/Bootstrap.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/JQuery.validate.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/JQuery.validate.methods.js" type="text/javascript"></script>
    <script src="../../../Scripts/resource.js" type="text/javascript"></script>
    <script src="../../../Scripts/Inside.js" type="text/javascript"></script>

    <title>IdeaSoft软件</title>
</head>
<body>
    <div id="main">
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <div class="box-title">
                            <div class="span10">
                                <h3>
                                    <i class="icon-edit"></i>微信接口配置</h3>
                            </div>
                            
                        </div>
                        <form action="bindapi.aspx" method="post" class="form-horizontal form-validate">
                        <input type="hidden" name="action" value="bindapi" />

                        <div class="box-content">
                            <div class="control-group">
                                <label for="name" class="control-label">
                                    微信url：</label>
                                <div class="controls">
                                    <input type="text" id="name" name="name" value="<%=wechatmodel.wechat_url %>" style="width:500px"/>
                                    <span class="help-inline">拷贝到微信公众账号</span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label for="discription" class="control-label">
                                    token：</label>
                                <div class="controls">
                                    <input type="text" id="Url1" name="token" value="<%=wechatmodel.wechat_token %>" />
                                    <span class="maroon">*</span><span class="help-inline"></span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label for="sort" class="control-label">
                                    微信号：</label>
                                <div class="controls">
                                    <input type="text" id="sort" name="weixin_name" value="<%=wechatmodel.wechat_name %>" class="input-mini" data-rule-required="true" />
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label">
                                    公众号类型：</label>
                                <div class="controls" id="Status">
                                <% if (string.IsNullOrEmpty(wechatmodel.wechat_type.ToString()) || wechatmodel.wechat_type == 0)
                                   { 
                                      %>
                                    <label class="radio inline">
                                        <input type="radio" value="1" name="is_show" />服务号</label>
                                    <label class="radio inline">
                                        <input type="radio" value="0" name="is_show" checked="checked" />订阅号</label>
                                        <%}else{%>                                    
                                        <label class="radio inline">
                                        <input type="radio" value="1" name="is_show" checked="checked"/>服务号</label>
                                    <label class="radio inline">
                                        <input type="radio" value="0" name="is_show"  />订阅号</label>

                                                                                                                    <%} %>

                                </div>
                            </div>
                            <div id="res_block">
                                <div id="r_link" class="control-group r-module">
                                    <div class="control-group">
                                        <label class="control-label" for="link">
                                            appid</label>
                                        <div class="controls">
                                            <input type="text" id="Text1" name="appid" value="<%=wechatmodel.wechat_appid %>" class="input-large" data-rule-required="true"
                                                />
                                            <span class="maroon">*</span><span class="help-inline">(订阅号有一种填法叫随便)</span>
                                        </div>
                                    </div>
                                </div>
                                <div id="r_tel" class="control-group r-module">
                                    <div class="control-group">
                                        <label class="control-label" for="tel">
                                            appsecret</label>
                                        <div class="controls">
                                            <input type="text"  name="appsecret" value="<%=wechatmodel.wechat_appsecret %>" class="input-large" data-rule-required="true"
                                                 />
                                            <span class="maroon">*</span><span class="help-inline">(订阅号有一种填法叫随便)</span>
                                        </div>
                                    </div>
                                </div>
                                <div id="r_tel1" class="control-group r-module">
                                    <div class="control-group">
                                        <label class="control-label" for="tel">
                                            微信原始id</label>
                                        <div class="controls">
                                            <input type="text" id="tel" name="originalid" value="<%=wechatmodel.wechat_originalid %>" class="input-large" data-rule-required="true"
                                                 />
                                            <span class="maroon">*</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary">
                                        保存</button>
                                    <button type="button" class="btn" onclick="window.history.go(-1);">
                                        取消</button>
                                </div>
                            </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>